
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module simpleparse.common.comments</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="simpleparse.html"><font color="#ffffff">simpleparse</font></a>.<a href="simpleparse.common.html"><font color="#ffffff">common</font></a>.comments</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/mcfletch/pylive/simpleparse/common/comments.py">/home/mcfletch/pylive/simpleparse/common/comments.py</a></font></td></tr></table>
    <p><tt>Common&nbsp;comment&nbsp;formats<br>
&nbsp;<br>
To&nbsp;process,&nbsp;handle&nbsp;the&nbsp;"comment"&nbsp;production,<br>
(the&nbsp;specific&nbsp;named&nbsp;comment&nbsp;formats&nbsp;are&nbsp;all<br>
expanded&nbsp;productions,&nbsp;so&nbsp;you&nbsp;won't&nbsp;get&nbsp;them<br>
returned&nbsp;for&nbsp;processing).<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hash_comment<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;to&nbsp;EOL&nbsp;comments<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slashslash_comment<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;to&nbsp;EOL&nbsp;comments<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;semicolon_comment<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;&nbsp;to&nbsp;EOL&nbsp;comments<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slashbang_comment<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c_comment<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;non-nesting&nbsp;/*&nbsp;*/&nbsp;comments<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slashbang_nest_comment<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c_nest_comment<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nesting&nbsp;/*&nbsp;/*&nbsp;*/&nbsp;*/&nbsp;comments</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="simpleparse.common.chartypes.html">simpleparse.common.chartypes</a><br>
</td><td width="25%" valign=top><a href="simpleparse.common.html">simpleparse.common</a><br>
</td><td width="25%" valign=top><a href="simpleparse.objectgenerator.html">simpleparse.objectgenerator</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>_p</strong> = &lt;simpleparse.parser.Parser instance&gt;<br>
<strong>c</strong> = {'c_comment': LibraryElement(
    production = 'slashbang_comm...enerator.Generator instance at 0x2aaaad5dedd0&gt;,
), 'c_nest_comment': LibraryElement(
    production = 'slashbang_nest...enerator.Generator instance at 0x2aaaad5e7170&gt;,
), 'hash_comment': LibraryElement(
    production = 'hash_comment',...enerator.Generator instance at 0x2aaaad5d9128&gt;,
), 'semicolon_comment': LibraryElement(
    production = 'semicolon_comm...enerator.Generator instance at 0x2aaaad5d9128&gt;,
), 'slashbang_comment': LibraryElement(
    production = 'slashbang_comm...enerator.Generator instance at 0x2aaaad5dedd0&gt;,
), 'slashbang_nest_comment': LibraryElement(
    production = 'slashbang_nest...enerator.Generator instance at 0x2aaaad5e7170&gt;,
), 'slashslash_comment': LibraryElement(
    production = 'slashslash_com...enerator.Generator instance at 0x2aaaad5d9128&gt;,
)}<br>
<strong>ccomments</strong> = '<font color="#c040c0">\n</font>### comments in format /* comment */ with no re..."*/"*<font color="#c040c0">\n</font>&gt;slashbang_comment&lt; := <font color="#c040c0">\'</font>/*<font color="#c040c0">\'</font>, comment, <font color="#c040c0">\'</font>*/<font color="#c040c0">\'\n</font>'<br>
<strong>eolcomments</strong> = "<font color="#c040c0">\n</font>### comment formats where the comment goes<font color="#c040c0">\n</font>### ..., EOL<font color="#c040c0">\n</font>&gt;slashslash_comment&lt; := '//', comment, EOL<font color="#c040c0">\n</font>"<br>
<strong>name</strong> = 'slashbang_nest_comment'<br>
<strong>nccomments</strong> = '<font color="#c040c0">\n</font>### nestable C comments of form /* comment /* i...comment&lt; := comment_start, comment, comment_stop<font color="#c040c0">\n</font>'</td></tr></table>
</body></html>